﻿<UserControl
    x:Class="XnReader.WinRT.Controlx.Header"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:XnReader.WinRT.Controlx"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="90">
    <Grid >
        <StackPanel Visibility="{Binding VisibleLogo}" x:Name="spLeft" HorizontalAlignment="Left"  Margin="140,0,0,0">
            <Image Source="../Assets/logo_small.png" Width="250" Height="80" Margin="0"></Image>
        </StackPanel>
        <StackPanel x:Name="spRight" HorizontalAlignment="Right" Orientation="Horizontal"  Margin="0,0,10,0">
            <Button x:Name="btnOnlineStore" Visibility="{Binding VisibleOnlineStore}" AutomationProperties.Name="在线搜书" Content="" Style="{StaticResource AppBarButtonStyle}" Click="BtnClick" />
            <Button x:Name="btnImport" Visibility="{Binding VisibleImport}" AutomationProperties.Name="导入本地" Content="" Style="{StaticResource AppBarButtonStyle}" Click="BtnClick" />
            <!--<Button x:Name="btnDelete" Visibility="{Binding VisibleDelete}" AutomationProperties.Name="下架" Content="" Style="{StaticResource AppBarButtonStyle}" Click="BtnClick" />-->
            <!--<Button x:Name="btnClean" Visibility="{Binding VisibleClean}" AutomationProperties.Name="清空" Content="" Style="{StaticResource AppBarButtonStyle}" Click="BtnClick" ToolTipService.ToolTip="清空当前书架的所有书籍" />-->
        </StackPanel>
    </Grid>
</UserControl>
